#ifndef SIMPLEFOCPROTOCOL_H
#define SIMPLEFOCPROTOCOL_H

#include "base/baseprotocol.h"
#include "simplefocprotocoldata.h"
#include "simplefocsendpacket.h"

class SimpleFOCProtocol : public BaseProtocol
{
    Q_OBJECT
public:
    SimpleFOCProtocol(QObject *parent = nullptr);
    virtual ~SimpleFOCProtocol() override;

    SimpleFOCSendPacket *getSender();

signals:
    void receiveData(const QByteArray &data);
    void receiveDebugData(const QByteArray &data);
    void addGraphData(int id, float data, float data2 = 0);

protected:
    SimpleFOCProtocol(SimpleFOCProtocolData &data, QObject *parent = nullptr);
};

#endif // SIMPLEFOCPROTOCOL_H
